package analysis;

import java.sql.Timestamp;

public class Record{
    private Timestamp date;
    private String type;
    private Integer duration;
    private Integer frequency;
    private Double weight;
    private Double points;

    public Record() {
    	date= new Timestamp(0);
    	type="";
    	duration=0;
    	frequency=0;
    	weight=0.0;
    	points=0.0;
    }
    
    public void setDate(long timeinmilli) {
    	date = new Timestamp(timeinmilli);
    }

    public long getDate() {
        return date.getTime();
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setFrequency(Integer frequency) {
        this.frequency = frequency;
    }

    public Integer getFrequency() {
        return frequency;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getWeight() {
        return weight;
    }

    public void setPoints(Double points) {
        this.points = points;
    }

    public Double getPoints() {
        return points;
    }
    
    public void display() {
    	System.out.println(date + "\t" + type + "\t" + duration + "\t" + frequency + "\t" + weight + "\t" + points);
    }
    
    public void displayLogs() {}
}

